<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<title>网络在线考试</title>
		<link href="<%=request.getContextPath() %>/CSS/style.css" rel="stylesheet">
		<script language="javascript" src="<%=request.getContextPath() %>/JS/ContentLoader.js"></script>
	</head>
	<script language="javascript">
		function checkForm(form) {
			if (form.name.value == "") {
				alert("请输入考生姓名!");
				form.name.focus();
				return false;
			}
			if (form.oldpwd1.value == "") {
				alert("请输入的原密码!");
				form.oldpwd1.focus();
				return false;
			}
			if (form.oldpwd1.value != form.holdpwd.value) {
				alert("您输入的原密码不正确，请重新输入!");
				form.oldpwd1.value = "";
				form.oldpwd1.focus();
				return false;
			}
			if (form.newpwd.value == "") {
				alert("请输入的新密码!");
				form.newpwd.focus();
				return false;
			}
			if (form.newpwd1.value == "") {
				alert("请确认新密码!");
				form.newpwd1.focus();
				return false;
			}
			if (form.newpwd.value != form.newpwd1.value) {
				alert("您两次输入的新密码不一致，请重新输入!");
				form.newpwd.value = "";
				form.newpwd1.value = "";
				form.newpwd.focus();
				return false;
			}
			if (form.question.value == "") {
				alert("请输入提示问题!");
				form.question.focus();
				return false;
			}
			if (form.answer.value == "") {
				alert("请输入问题答案!");
				form.answer.focus();
				return false;
			}
		}
	</script>
	<body>
	
		<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td>
					<img alt="" src="<%=request.getContextPath() %>/Images/top_bg.jpg" width="960" height="131" /></td>
			</tr>
		</table>
		
		<table width="960" border="0" align="center" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" bgcolor="#FFFFFF">
					<table width="950" border="0" cellpadding="0" cellspacing="0" align="center">
						<tr>
							<td height="30" bgcolor="#EEEEEE" class="tableBorder_thin">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="word_grey">&nbsp;
											<img src="<%=request.getContextPath() %>/Images/f_ico.gif" width="8" height="8" /> 
											当前位置：→ <span class="word_darkGrey">修改个人资料 &gt;&gt;&gt;</span>
										</td>
										<td align="right">
											<img src="<%=request.getContextPath() %>/Images/m_ico1.gif" width="5" height="9">&nbsp;
											<a href="<%=request.getContextPath() %>/exam/main.jsp">返回首页</a>&nbsp;
										</td>
									</tr>
								</table></td>
						</tr>
						<tr>
							<td align="center" valign="top">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="84%">&nbsp;</td>
									</tr>
								</table> 
								
								<form name="studentForm" action="<%=request.getContextPath() %>/exam/studentOK.jsp" method="post" onsubmit="return checkForm(studentForm)">
	
									<table width="57%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
										<tr>
											<td height="30" align="left" style="padding: 5px;">考生姓名：</td>
											<td align="left">
												<input type="hidden" name="ID" value="CN20191227000008"/> 
												<input type="text" name="name" value="sdfsdfsdfsdf" readonly/>*
											</td>
										</tr>
										<tr>
											<td align="left" style="padding: 5px;">原&nbsp;密&nbsp;码：</td>
											<td align="left">
												<input type="hidden" name="holdpwd" value="2234234"/> 
												<input type="password" name="oldpwd" value="123456" />*	
											</td>
										</tr>
										<tr>
											<td height="30" align="left" style="padding: 5px;">新&nbsp;密&nbsp;码：</td>
											<td align="left">
												<input type="password" name="pwd" value="123456" />（密码由6到20位的数字或字母组成） *
											</td>
										</tr>
										<tr align="center">
											<td width="20%" height="30" align="left" style="padding: 5px;">确认新密码：</td>
											<td width="80%" align="left">
												<input type="password" name="pwd" value="123456" />*
											</td>
										</tr>
										<tr>
											<td height="30" align="left" style="padding: 5px;">性&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
											<td align="left">
												<select name="sex">
													<option value="%">---请选择--- </option>
													<option value="男" selected>男 </option>
													<option value="女">女 </option>
												</select>
											</td>
										</tr>
										<tr align="center">
											<td width="20%" height="30" align="left" style="padding: 5px;">提示问题：</td>
											<td width="80%" align="left">
												<input type="text" name="question" value="123456" />（如我的生日）*
											</td>
										</tr>
										<tr align="center">
											<td width="20%" height="30" align="left" style="padding: 5px;">问题答案：</td>
											<td width="80%" align="left">
												<input type="text" name="answer" value="123456" size="40"/>（如7月17日）*
											</td>
										</tr>
										<tr align="center">
											<td width="20%" height="30" align="left" style="padding: 5px;">专&nbsp;&nbsp;&nbsp;&nbsp;业：</td>
											<td width="80%" align="left">
												<input type="text" name="profession" value="123456" size="40"/>
											</td>
										</tr>
										<tr align="center">
											<td width="20%" height="30" align="left" style="padding: 5px;">身份证号：</td>
											<td width="80%" align="left">
												<input type="text" name="cardNo" value="123456" size="40"/>*
											</td>
										</tr>
										<tr>
											<td height="65" align="left" style="padding: 5px;">&nbsp;</td>
											<td align="left">
												<input type="submit" value=" 保存 " class="btn_grey"/>&nbsp;
												<input type="reset" value=" 取消 " class="btn_grey"/>&nbsp;
												<input type="button" value=" 返回 " class="btn_grey" onclick="window.location.href='<%=request.getContextPath() %>/exam/main.jsp'" />&nbsp;
											</td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<%@ include file="/copyright.jsp"%>
	</body>
</html>
